#include<bits/stdc++.h>
#define y1 Y1
#define fi first
#define endl "\n"
#define se second
#define PI acos(-1)
#define int long long
#define pb(x) push_back(x)
#define PII pair<int, int>
#define Yes cout << "Yes\n";
#define No cout << "No\n";
#define YES cout << "YES\n";
#define NO cout << "NO\n";
#define _for(i, a, b) for(int i = a; i <= b; ++i)
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;

const int N = 2e5 + 10;
char a[N];
int cnt = 0;

int n, m;
string s;

signed main() {
	IOS;
	cin >> s;
	_for(i, 0, s.size() - 1) {
		a[cnt ++ ] = s[i];
	}
	sort(a, a + cnt);
	bool flag  = true;
	
	_for(i, 0, cnt - 1) {
		if(a[i] != '0' && flag) {
			swap(a[i], a[0]);
			flag = false;
		}
	}
	int t = 0;
	_for(i, 0, cnt - 1) {
		cout << a[i];
	}
	return 0;
}

